//导入vue
import Vue from 'vue'
//导入vue-Router
import VueRouter from 'vue-router'
//集成vueRoter中间件
Vue.use(VueRouter)

//导入组建
import Login from '../components/account/Login.vue'

//创建路由对象 导出去
const router = new VueRouter({
    routes:[
        {path:'/',redirect:'/login'},
        {path:'/login',component:Login}
    ]
})
//es6 导出
export default router;